{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Iteration: 1, delta = 1466.2236239668678\n",
      "Iteration: 2, delta = 178.09595140235479\n",
      "Iteration: 3, delta = 122.9449681776814\n",
      "Iteration: 4, delta = 87.31358567622465\n",
      "Iteration: 5, delta = 62.69665876827412\n",
      "Iteration: 6, delta = 45.42239934676854\n",
      "Iteration: 7, delta = 33.158544205951785\n",
      "Iteration: 8, delta = 24.39248658850147\n",
      "Iteration: 9, delta = 18.094550266671376\n",
      "Iteration: 10, delta = 13.54904027267321\n",
      "Iteration: 11, delta = 10.252379488046245\n",
      "Iteration: 12, delta = 7.848669709154365\n",
      "Iteration: 13, delta = 6.086454636246799\n",
      "Iteration: 14, delta = 4.788458307723886\n",
      "Iteration: 15, delta = 3.8299053756531976\n",
      "Iteration: 16, delta = 3.122873178243026\n",
      "Iteration: 17, delta = 2.6050408381288435\n",
      "Iteration: 18, delta = 2.2316904209010318\n",
      "Iteration: 19, delta = 1.9701101960431515\n",
      "Iteration: 20, delta = 1.795752091414215\n",
      "Iteration: 21, delta = 1.6896477099976437\n",
      "Iteration: 22, delta = 1.6367076550845923\n",
      "Iteration: 23, delta = 1.6246251283932907\n",
      "Iteration: 24, delta = 1.6431809395098753\n",
      "Iteration: 25, delta = 1.6838062089104824\n",
      "Iteration: 26, delta = 1.7393038856876046\n",
      "Iteration: 27, delta = 1.8036633204969803\n",
      "Iteration: 28, delta = 1.8719259246654474\n",
      "Iteration: 29, delta = 1.94007652367236\n",
      "Iteration: 30, delta = 2.00494617126742\n",
      "Iteration: 31, delta = 2.0641193924147956\n",
      "Iteration: 32, delta = 2.1158432226679906\n",
      "Iteration: 33, delta = 2.1589378902735916\n",
      "Iteration: 34, delta = 2.1954186438620127\n",
      "Iteration: 35, delta = 2.1792291130373087\n",
      "Iteration: 36, delta = 2.161131873532213\n",
      "Iteration: 37, delta = 2.138616526509395\n",
      "Iteration: 38, delta = 2.1107247941065452\n",
      "Iteration: 39, delta = 2.077248416043858\n",
      "Iteration: 40, delta = 2.0384724195671424\n",
      "Iteration: 41, delta = 1.994984235397851\n",
      "Iteration: 42, delta = 1.94753433583287\n",
      "Iteration: 43, delta = 1.8969373637091849\n",
      "Iteration: 44, delta = 1.8440046355945015\n",
      "Iteration: 45, delta = 1.7895004867714306\n",
      "Iteration: 46, delta = 1.7341163178480201\n",
      "Iteration: 47, delta = 1.6784574320126922\n",
      "Iteration: 48, delta = 1.6230388169699381\n",
      "Iteration: 49, delta = 1.5682869251297689\n",
      "Iteration: 50, delta = 1.5145452458264117\n",
      "Iteration: 51, delta = 1.4620820576578808\n",
      "Iteration: 52, delta = 1.4110992154357973\n",
      "Iteration: 53, delta = 1.361741184467519\n",
      "Iteration: 54, delta = 1.3141038041451338\n",
      "Iteration: 55, delta = 1.268242460967258\n",
      "Iteration: 56, delta = 1.2241794934923291\n",
      "Iteration: 57, delta = 1.1819107512205846\n",
      "Iteration: 58, delta = 1.1414112967506753\n",
      "Iteration: 59, delta = 1.1026402839911498\n",
      "Iteration: 60, delta = 1.0655450714154995\n",
      "Iteration: 61, delta = 1.0300646433558995\n",
      "Iteration: 62, delta = 0.9961324178657378\n",
      "Iteration: 63, delta = 0.9636785196698838\n",
      "Iteration: 64, delta = 0.9326315931257341\n",
      "Iteration: 65, delta = 0.9029202244089447\n",
      "Iteration: 66, delta = 0.8744740354454734\n",
      "Iteration: 67, delta = 0.84722450494246\n",
      "Iteration: 68, delta = 0.8211055648937418\n",
      "Iteration: 69, delta = 0.7960540142573791\n",
      "Iteration: 70, delta = 0.7720097853969037\n",
      "Iteration: 71, delta = 0.7489160933666881\n",
      "Iteration: 72, delta = 0.7267194932596794\n",
      "Iteration: 73, delta = 0.7053698665672528\n",
      "Iteration: 74, delta = 0.6777633374424568\n",
      "Iteration: 75, delta = 0.6420322119474804\n",
      "Iteration: 76, delta = 0.6227444190744791\n",
      "Iteration: 77, delta = 0.6042345772832505\n",
      "Iteration: 78, delta = 0.586459970063288\n",
      "Iteration: 79, delta = 0.5694015038363887\n",
      "Iteration: 80, delta = 0.5530330654548834\n",
      "Iteration: 81, delta = 0.5373242592779661\n",
      "Iteration: 82, delta = 0.5222424281671465\n",
      "Iteration: 83, delta = 0.507754099076692\n",
      "Iteration: 84, delta = 0.4938259987636684\n",
      "Iteration: 85, delta = 0.4804257497094113\n",
      "Iteration: 86, delta = 0.4675223292865667\n",
      "Iteration: 87, delta = 0.45508635469013825\n",
      "Iteration: 88, delta = 0.44309024068775216\n",
      "Iteration: 89, delta = 0.4315082654932212\n",
      "Iteration: 90, delta = 0.42031657128563893\n",
      "Iteration: 91, delta = 0.4094931191989417\n",
      "Iteration: 92, delta = 0.399017613593287\n",
      "Iteration: 93, delta = 0.38887140662154707\n",
      "Iteration: 94, delta = 0.37903739121543367\n",
      "Iteration: 95, delta = 0.3694998884739107\n",
      "Iteration: 96, delta = 0.3602445337601239\n",
      "Iteration: 97, delta = 0.3512581645982209\n",
      "Iteration: 98, delta = 0.3425287125085106\n",
      "Iteration: 99, delta = 0.3340451002179634\n",
      "Iteration: 100, delta = 0.32579714515327396\n",
      "Iteration: 101, delta = 0.3177754697128421\n",
      "Iteration: 102, delta = 0.3099714185511857\n",
      "Iteration: 103, delta = 0.30237698284577164\n",
      "Iteration: 104, delta = 0.29498473141893555\n",
      "Iteration: 105, delta = 0.28778774842476196\n",
      "Iteration: 106, delta = 0.2807795772657755\n",
      "Iteration: 107, delta = 0.2739541703631403\n",
      "Iteration: 108, delta = 0.26730584434994853\n",
      "Iteration: 109, delta = 0.2608292402769621\n",
      "Iteration: 110, delta = 0.25451928839697757\n",
      "Iteration: 111, delta = 0.24837117712013423\n",
      "Iteration: 112, delta = 0.24238032574362478\n",
      "Iteration: 113, delta = 0.23654236056131595\n",
      "Iteration: 114, delta = 0.23085309402540588\n",
      "Iteration: 115, delta = 0.22530850659109092\n",
      "Iteration: 116, delta = 0.21990473097775975\n",
      "Iteration: 117, delta = 0.21463803852952879\n",
      "Iteration: 118, delta = 0.20950482743864995\n",
      "Iteration: 119, delta = 0.20450161259304878\n",
      "Iteration: 120, delta = 0.19962501683926348\n",
      "Iteration: 121, delta = 0.1948717634638797\n",
      "Iteration: 122, delta = 0.19023866974180237\n",
      "Iteration: 123, delta = 0.18572264138401806\n",
      "Iteration: 124, delta = 0.1813206677618382\n",
      "Iteration: 125, delta = 0.17702981779780202\n",
      "Iteration: 126, delta = 0.1728472364031859\n",
      "Iteration: 127, delta = 0.1687701413927698\n",
      "Iteration: 128, delta = 0.1647958207904594\n",
      "Iteration: 129, delta = 0.16092163045755115\n",
      "Iteration: 130, delta = 0.1571449919990755\n",
      "Iteration: 131, delta = 0.15346339087727756\n",
      "Iteration: 132, delta = 0.14987437472564125\n",
      "Iteration: 133, delta = 0.14637555178751427\n",
      "Iteration: 134, delta = 0.1429645894920668\n",
      "Iteration: 135, delta = 0.1396392131052835\n",
      "Iteration: 136, delta = 0.1363972044705406\n",
      "Iteration: 137, delta = 0.1332364007942033\n",
      "Iteration: 138, delta = 0.13015469348692932\n",
      "Iteration: 139, delta = 0.12715002702884703\n",
      "Iteration: 140, delta = 0.12422039787293215\n",
      "Iteration: 141, delta = 0.1213638533536141\n",
      "Iteration: 142, delta = 0.11857849063085268\n",
      "Iteration: 143, delta = 0.11586245562853037\n",
      "Iteration: 144, delta = 0.11321394199057977\n",
      "Iteration: 145, delta = 0.11063119004825239\n",
      "Iteration: 146, delta = 0.1081124857935265\n",
      "Iteration: 147, delta = 0.10565615985365184\n",
      "Iteration: 148, delta = 0.10326058648411163\n",
      "Iteration: 149, delta = 0.10092418256476776\n",
      "Iteration: 150, delta = 0.09864540659987142\n",
      "Correlation coefficient: 0.7255254877587117\n"
     ]
    }
   ],
   "source": [
    "run lasso_regression.py"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
